import request from '@/utils/request'

// 查询DMA配置列表
export function listBasicDma(query) {
  return request({
    url: '/region/basicDma/list',
    method: 'get',
    params: query
  })
}

// 查询DMA配置详细
export function getBasicDma(ID) {
  return request({
    url: '/region/basicDma/' + ID,
    method: 'get'
  })
}

// 查询大分区配置详细
export function getBasicDmaByAreaId(params) {
  return request({
    url: '/region/basicDma/getBasicDmaByAreaId/',
    method: 'get',
    params: params,
  })
}

// 新增DMA配置
export function addBasicDma(data) {
  return request({
    url: '/region/basicDma',
    method: 'post',
    data: data
  })
}

// 修改DMA配置
export function updateBasicDma(data) {
  return request({
    url: '/region/basicDma',
    method: 'put',
    data: data
  })
}

// 删除DMA配置
export function delBasicDma(ID) {
  return request({
    url: '/region/basicDma/' + ID,
    method: 'delete'
  })
}
